﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;

namespace shop.Model
{
    /// <summary> 多把商品物流资费 </summary>
    public class MultPostPrice
    {
        [Column(IsPrimary = true, IsIdentity =true)]
        public int id { set; get; }

        ///// <summary> 商家编码 </summary>
        //[Column(StringLength = 50)]
        //public string spec_no { set; get; }


        /// <summary> 数量 </summary>
        public int Qty { set; get; }


        /// <summary> 货品编号 </summary>
        [Column(StringLength = 50)]
        public string goods_no { set; get; }


        /// <summary> 客服备注内容 </summary>
        [Column(StringLength =500)]
        public string CsRemarks { set; get; }



        /// <summary> 商家编码筛选条件 </summary>
        [Column(StringLength = 100)]
        public string SpecNoFilter { set; get; }


        /// <summary> 长 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal Flength { get; set; }

        /// <summary> 宽 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal Width { get; set; }


        /// <summary> 高 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal Height { get; set; }


        /// <summary> 体积 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal Volume { set; get; }


        /// <summary> 实重 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal FWeight { set; get; }




        ///// <summary> 按件计费单价 </summary>
        //[Column(Precision = 18, Scale = 4)]
        //public decimal PriceByQty { set; get; }


        ///  <summary> 取整方式 </summary>
        [Column(StringLength = 30)]
        public string roundMode { set; get; }


        ///  <summary> 实重与拋10000最大值 </summary>
        [Column(Precision = 18, Scale = 4)]
        public decimal weightRatio { set; get; }

        ///  <summary> 实重与拋8000最大值 </summary>
        [Column(Precision = 18, Scale = 4)]
        public decimal weightRatio8000 { set; get; }


        public DateTime? BeginDate { set; get; }

        public DateTime? EndDate { set; get; }

        public bool isdel { set; get; }

        public DateTime FTime { get; set; }


        [Column(StringLength =30)]
        public string FUser { get; set; }


        [Column(StringLength =500)]
        public string Remarks { get; set; }


        public MultPostPrice Clone()
        {
            return this.MemberwiseClone() as MultPostPrice;
        }

        /// <summary> 客服备注中的关键字  </summary>
        [Column(IsIgnore = true)]
        public List<string> Keyword { set; get; }

    }
}
